﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WarriorRush.GameDynamics.Effects
{
    public class Shielding : GameEffect
    {

        public Shielding()
            : base(true)
        {
            Type = EffectType.Shielded;
        }

        public override int ModifyDamageTaken(int damage)
        {

            damage--;
            return base.ModifyDamageTaken(damage);
        }

        public override GameEffect GetInstance(int power)
        {

            return new Shielding() { Power = power };
        }
    }
}
